<include file="Public/header" />
<title>管理员列表</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 出库管理 <span class="c-gray en">&gt;</span> 波次单 <a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="pd-20" style="margin-top:-20px;">
	<div class="cl pd-5 bg-1 bk-gray mt-20"> 
		<form class="formleft" name="" id="" action="__URL__/pushorder/" method="get">
			
			<input class="input-text" style="width:200px;float:left;margin:0 5px 0 0;" type="text" value="<{$_GET['goods_name']}>" placeholder="商品名称" name="goods_name">
			<input class="input-text" style="width:100px;float:left;margin:0 5px 0 0;" type="text" value="<{$_GET['nums']}>" placeholder="数量" name="nums">
			<select name="check_cate" class="input-text" style="width:200px;height:30px;float:left;margin:0 5px 0 0;">
				<option value="0">匹配规则</option>
                <option value="1">完全匹配（商品唯一并匹配商品数量）</option>
				<option value="2">商品唯一但不匹配此商品数量</option>
				<option value="3">包含此商品并且匹配此商品数量</option>
                <option value="4">包含此商品但不匹配此商品数量</option>
				<option value="5">不包含此商品</option>
			</select>
			<button type="submit" class="btn btn-success"><i class="icon-plus"></i> 查询</button>
			<a href="javascript:;" id="makebar" class="btn btn-primary radius"><i class="Hui-iconfont"></i> 制单</a>
			<a href="javascript:;" onclick="admin_open('历史波次单','__URL__/historypicklist/',0,'800','800')" class="btn btn-primary radius">历史波次单</a>
		</form>
		<span class="r">共有数据：<strong><{$count}></strong> 条</span> 
    </div>
	
	<table class="table table-border table-bordered table-bg">
		<thead>
			<tr>
				<th scope="col" colspan="15">商品列表</th>
			</tr>
			<tr class="text-c">
				<th width="25"><input type="checkbox" name="" value=""></th>
				<th>序号</th>
				<th width="">订单编号</th>
				<th width="">运单号</th>
				<th width="">收件人姓名</th>
				<th width="">身份证号</th>
				<th width="">收件人电话</th>
				<th width="">收件人地址</th>
				<th width="">状态</th>
				<th width="">推送时间</th>
			</tr>
		</thead>
		<tbody>
			<volist name="list" id="vo">
			<tr class="text-c">
				<td><input  class="uids" type="checkbox" value="<{$vo.id}>" name="ids[]"></td>
				<td><{$i}></td>
				<td><{$vo.order_no}></td>
				<td><{$vo.logistics_no}></td>
				<td><{$vo.user_name}></td>
				<td><{$vo.user_idcard}></td>
				<td><{$vo.user_phone}></td>
				<td><{$vo.province}><{$vo.city}><{$vo.area}><{$vo.user_address}></td>
				<td>
				<if condition="$vo.flag eq 1">
					<img src="__PUBLIC__/img/flag/flag_green.png">
				</if>
				<if condition="$vo.flag eq 2">
					<img src="__PUBLIC__/img/flag/flag_yellow.png">
				</if>
				<if condition="$vo.flag eq 3">
					<img src="__PUBLIC__/img/flag/flag_red.png">
				</if>
				</td>
				<td><{$vo.add_time|date="Y-m-d",###}></td>
			</tr>
			</volist>			
		</tbody>
	</table>
	<div class="page mt" style="text-align:right"><{$page}></div>
</div>
<script type="text/javascript">
    $(function(){
        $("#makebar").click(function(){
			var option = $(".uids");
			var checked_counts=0;
			var check_val=[];
            for(var i=0;i<option.length;i++){
				if(option[i].checked){
					checked_counts++;
					check_val.push(option[i].value);
				}
			}
			if(check_val==''){
				layer.msg('请选择订单');
				return false;
			}
			$.ajax({
                type: 'POST',
                data:{id:check_val},
                url: "<{:U('make_pickcollect')}>",
                success:function(data){
					if(!data.status){
						layer.msg(data.message);
					}else{
						admin_open('生成波次单','__URL__/get_pickcollect/orderlist/'+data.orderlist,0,'800','480');
					}
                }
            })
        });
    })
</script>
 <include file="Public/footer" />
<include file="Public/footer_js" />
</body>
</html>